<template>
    <view class="pk-loading">
        <view class="pk-loading-loadingicon"></view>
        <view class="pk-loading-loadingtext mt-24">加载中...</view> 
    </view>
</template>
<script setup>
import { defineProps, defineEmits, ref } from 'vue';

</script>

<style lang="scss" scoped>
.pk-loading{
  height: 100%;
  flex:1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  &-loadingicon{
    background: url("@/static/loading.png") center center  no-repeat;
    background-size: 56rpx auto;
    width: 56rpx;
    height: 56rpx;
    animation: rotate 1s linear infinite;
    margin: 0 autu;
  }
  &-loadingtext{
    color: #00b4b3;
  }
  &-loading{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    background: rgba($color: #fff, $alpha: 0.8);
    backdrop-filter: 2px;
    top:0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@keyframes rotate {
    0%{-webkit-transform:rotate(0deg);}
    25%{-webkit-transform:rotate(90deg);}
    50%{-webkit-transform:rotate(180deg);}
    75%{-webkit-transform:rotate(270deg);}
    100%{-webkit-transform:rotate(360deg);}
}

</style>